//
//  PaddingAndSpacerBootcamp.swift
//  swiftUiTest
//
//  Created by Mac on 2023/6/26.
//

import SwiftUI

struct PaddingAndSpacerBootcamp_12: View {
    var body: some View {
        VStack(alignment: .leading){
            
            Text("Hello, World! xupeng weclome")
                .background(Color.yellow)
            //.padding()
            //.padding(.all,10)
            //.padding(.vertical,10)
            //.padding(.horizontal,10)
                .padding(.top,10)
                .background(Color.red)
            
            Text("Hello World!")
                .font(.largeTitle)
                .fontWeight(.semibold)
                .background(Color.red)
                .frame(maxWidth: .infinity,alignment:.leading)
                .background(Color.green)
              
            
            Text("This is the description of what we will do this screen, It's multiple lines and we will align the text to the leading edge.")
              
        }
        .background(
            Color.brown
                .shadow(color: Color.green.opacity(0.3), radius: 10,
                        x: 0.0,y: 50
                )
        )
        .padding()
    }
}

struct PaddingAndSpacerBootcamp_Previews: PreviewProvider {
    static var previews: some View {
        PaddingAndSpacerBootcamp_12()
    }
}
